const express = require("express");
const router = express.Router();

const {
  getCourse,
  getGoodsCourse,
  addCourses,
  getCourseType,
  getCourseCatagory,
  getCourseLevel,
  getCourseByPage,
  getCourseChapts,
  downloadFile,
} = require("../controllers/course");

router.get("/", getCourse);
router.get("/goods", getGoodsCourse);
router.post("/", addCourses);
router.get("/type", getCourseType);
router.get("/catagory", getCourseCatagory);
router.get("/level", getCourseLevel);
router.post("/page", getCourseByPage);
router.get("/chapter", getCourseChapts);
router.get("/download", downloadFile);

module.exports = router;
